//Todos scripts dentro de Document.Ready são Jquery
$(document).ready(function() {
    var table = $('#example').dataTable( {
		"aaSorting": [[ 1, "asc" ]],
	    "aoColumnDefs": [
			{ "sWidth": "40%", "aTargets": [ 1 ] },
			{ "sWidth": "15%", "aTargets": [ 2 ] }
		],
        "bProcessing": true,
        "bServerSide": true,
        "sAjaxSource": "frmAtendimento.php",
		"oLanguage": {
			"sUrl": "js/dataTables_Brazilian.txt"
		}
    });
	
	$('#example tbody').on( 'click', 'tr', function () {
        if ( $(this).hasClass('selected') ) {
            $(this).removeClass('selected');
        }
        else {
            table.$('tr.selected').removeClass('selected');
            $(this).addClass('selected');
        }
    } );
});